package org.abacus.db.v1.connection;

import java.sql.Connection;
import java.sql.SQLException;

public class ConnectionFactory {
	private ConnectionFactory(String target) {
		super();
		this.target = target;
	}

	private String target;

	public static ConnectionFactory getInstance(String target) {
		return new ConnectionFactory(target);
	}

	public Connection getConnection() throws SQLException {
		return getConnection(target);
	}

	private Connection getConnection(String target) throws SQLException {
		return StorageManager.getConnection(target);
	}
}
